﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace IMPPFront
{
    public partial class Error : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // Check if person id is set
            if (Request.QueryString.HasKeys() && Request.QueryString["Error"] != null)
            {
                String errorMessage = String.Empty;

                try
                {
                    int errorID = int.Parse(Request.QueryString["Error"]);

                    switch (errorID)
                    {
                        case 1:
                            errorMessage = "Geen id gevonden";
                            break;
                    }
                }
                catch (Exception ex)
                {
                    errorMessage = ex.Message;
                }

                lblError.Text = errorMessage;
            }
        }
    }
}